<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
  <script>
     function show(obj){
	    var code = obj.value;
		var text = document.getElementById("text");
		var span = document.getElementById("span");
		text.value = code;
		//span.innerHTML = code;
		span.innerText = code;
	 }
  </script>
 </head>
 <body>
    <input type="text" onkeyup="show(this)">
	<input type="text" id="text">
	<span id="span"><span>
 </body>
</html>
